//调用接口配置文件
import { request } from 'config/request'

//获取省市
export async function queryAllAddress(params) {
    return request({
        url: 'admin/address/queryAdminAddress',
        method: 'GET',
        data: params,
    });
};
//获取渠道信息详情
export async function getDetail(params) {
    return request({
        url: `admin/qrcode/detail/get`,
        method: 'GET',
        data: params,
    });
};
//获取所有已上架项目
export async function AllEstateList(params) {
    return request({
        url: 'admin/estate/adminList',
        method: 'POST',
        data: params,
    });
};

//编辑或提交
export async function submit(params) {
    return request({
        url: 'admin/qrcode/add',
        method: 'POST',
        headers:{
            "content-type":'application/json'
        },
        data: params,
    });
};
//区域
export async function getArea(params) {
    return request({
        url: 'admin/qrcode/region/tree/get',
        method: 'GET',
        headers:{
            "content-type":'application/json'
        },
        data: params,
    });
};
//传播渠道类别
export async function getType(params) {
    return request({
        url: 'admin/qrcode/channel-type/list',
        method: 'GET',
        data: params,
    });
};

//关键字搜索
export async function getKeys(params) {
    return request({
        url: 'admin/qrcode/list-by-page',
        method: 'GET',
        data: params,
    });
};










